<%@ page import="sige.DespesaDiversa" %>
<!doctype html>
<html>
      <head>
          <meta name="layout" content="main">
          <g:set var="entityName" value="${message(code: 'despesaDiversa.label', default: 'Despesa Diversa')}" />
          <title><g:message code="default.create.label" args="[entityName]" /></title>
      </head>
      <body>
              <center>
                <h1><g:message code="default.create.label" args="[entityName]" /></h1>
              </center>
              <ul class="breadcrumb">
                  <li>
                    <a href="${createLink(uri: '/')}">
                      <i class="icon-home"></i>
                      <g:message code="default.home.label"/>
                    </a>
                    <span class="divider"><g:message code="span.divider" /></span>
                  </li>
                  <li>
                    <g:link action="list">
                      <i class="icon-list"></i>
                      <g:message code="default.list.label" args="[entityName]" />
                    </g:link>
                  </li>
              </ul>

              <div id="create-despesaDiversa" class="span8 offset3" role="main">

                  <g:if test="${flash.message}">
                  <div class="alert alert-info">${flash.message}</div>
                  </g:if>
                  <g:hasErrors bean="${despesaDiversaInstance}">
                  <ul class="alert alert-error">
                      <g:eachError bean="${despesaDiversaInstance}" var="error">
                        <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
                      </g:eachError>
                  </ul>
                  </g:hasErrors>
                  <g:form action="save" >
                      <fieldset class="form-horizontal well">
                          <g:render template="form"/>
                          <g:hiddenField name="ordem.id" value="${despesaDiversaInstance?.ordem?.id}" />
                      </fieldset>
                      <fieldset class="form-actions">
                          <g:submitButton name="create" class="btn btn-primary" value="${message(code: 'default.button.create.label', default: 'Create')}" />
                      </fieldset>
                  </g:form>
              </div>
      </body>
</html>
